import {createAPI} from '../../request.js'

// 接口地址映射
const BASE_URL = '/api';

// 请求地址前缀拼接
const APP_PRE_DMFL = BASE_URL + '/xtgl_02_01/jcggDmfl'

// 请求地址前缀拼接
const APP_PRE_DMX = BASE_URL + '/xtgl_02_01/jcggDmx'

//！ 接口别名的命名需要遵循  类名 + 方法名，风格需遵循驼峰风格（首字母小写）  注：idea中可安装CamelCase，使用快捷键 shift + alt + u 自动转换为驼峰效果。

// 查询单条代码分类数据
export const jcggDmflFindOne = data => createAPI(APP_PRE_DMFL + '/findOne', 'get', data)

// 查询代码分类列表数据
export const jcggDmflFindList = data => createAPI(APP_PRE_DMFL + '/findList', 'get', data)

// 查询分页代码分类列表数据
export const jcggDmflFindListByPage = data => createAPI(APP_PRE_DMFL + '/findListByPage', 'get', data)

// 新增代码分类
export const jcggDmflAdd = data => createAPI(APP_PRE_DMFL + '/add', 'post', data)

// 修改代码分类
export const jcggDmflUpdate = data => createAPI(APP_PRE_DMFL + '/update', 'post', data)

// 删除代码分类
export const jcggDmflDel = data => createAPI(APP_PRE_DMFL + '/delete', 'post', data)

// 查询单条代码分类数据
export const jcggDmxFindOne = data => createAPI(APP_PRE_DMX + '/findOne', 'get', data)

// 查询分页代码项列表数据
export const jcggDmxFindListByPage = data => createAPI(APP_PRE_DMX + '/findListByPage', 'get', data)

// 查询代码项列表数据
export const jcggDmxFindList = data => createAPI(APP_PRE_DMX + '/findList', 'get', data)

// 新增代码项
export const jcggDmxAdd = data => createAPI(APP_PRE_DMX + '/add', 'post', data)

// 修改代码项
export const jcggDmxUpdate = data => createAPI(APP_PRE_DMX + '/update', 'post', data)

// 删除代码项
export const jcggDmxDel = data => createAPI(APP_PRE_DMX + '/delete', 'post', data)


// 查询根目录树
// export const findDmTree = data => createAPI(APP_PRE_DMFL + '/findDmTree', 'get', data)

// 查询子目录树
// export const findDmChildTree = data => createAPI(APP_PRE_DMFL + '/findDmChildTree', 'get', data)
